﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VTS.DAL;

namespace VTS.BLL
{
  public  class NhomTinTucBLL
  {
      

      public List<NhomTinTuc> GetCategoryAll()
      {
          return new DanhMucTinTucDAL().GetCategoryAll();
      }
      public NhomTinTuc GetCategoryById(int id)
      {
          return new DanhMucTinTucDAL().GetCategoryById(id);
      }
      public int CreateCategory(NhomTinTuc ntt)
      {
          return new DanhMucTinTucDAL().CreateNewsCategory(ntt);
      }
      public int UpdateNewCategory(int id, string name)
      {
          return new DanhMucTinTucDAL().UpdateNewsCategory(id, name);
      }
      public int DeleteCategory(int id)
      {
          return new DanhMucTinTucDAL().DeleteNewsCategory(id);
      }
  }
}
